package com.onesports.intelligent.k12.polarlight.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 通用状态枚举
 * @author Wsy
 **/
public enum CommonStatusEnum implements IEnum<Boolean> {

    ENABLE(true, "启用"),
    STOP(false, "停用"),;

    private final Boolean type;
    private final String text;

    CommonStatusEnum(Boolean type, String text){
        this.type = type;
        this.text = text;
    }




    @Override
    public Boolean getValue() {
        return this.type;
    }


    @JsonValue
    public String getDesc() {
        return this.text;
    }
}
